package com.example.mvvm.adapter;

import androidx.annotation.NonNull;

import com.example.mvvm.base.BaseAdapter;
import com.example.mvvm.base.BaseViewHolder;
import com.example.mvvm.databinding.AdapterVideoPlayerBinding;
import com.example.mvvm.mode.LookVideoMode;

import java.util.List;

/**
 * Time: 4/25/2021 17:30
 * Author: TAO
 * Description:
 */
public class VideoPlayerAdapter extends BaseAdapter<LookVideoMode, AdapterVideoPlayerBinding> {

    public VideoPlayerAdapter(List<LookVideoMode> data, int layoutId) {
        super(data, layoutId);
    }

    @Override
    protected void onCreateViewHolder(BaseViewHolder<AdapterVideoPlayerBinding> viewHolder) {
    }

    @Override
    protected void onBind(@NonNull BaseViewHolder<AdapterVideoPlayerBinding> holder, int position, LookVideoMode t, AdapterVideoPlayerBinding binding) {
        binding.videoPlayer.setMode(t, position);
    }

}
